# -*- coding: utf-8 -*-
from django.conf.urls import  include, url
from django.http import HttpResponseForbidden
# import settings
from  django.conf import settings
import os
from public_util.util.AutoUrl  import get_handlers, Route
from package import views
# from authority.views.player import user
from package.views import index,login
from package.views import verify,home
# from authority.views import card,game,help,log,mail,pay,player,server,sync,system
# from authority.views.log import query

_urls = [
         # url(r'^$', lambda request: HttpResponseForbidden('403 ')),
         # # 游爱帐号相关        # url(r'^user/list$',  user.user_list ),
         # url(r'index',index),
         # url(r'login',login),
         # url(r'^get_verify_code_image/',verify.get_verify_code_image),

         ]

views_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
_auto_handlers = get_handlers(views_path)
# urlpatterns = (patterns(*tuple(_urls + _auto_handlers)))
# print(_auto_handlers[1].__dict__,type(_auto_handlers[1]))
# print(_urls[1],_urls[2].__dict__)
# urlpatterns = _urls
urlpatterns = _urls + _auto_handlers
# print(urlpatterns)
# print(callable(log.query.query_view))
